﻿@inherits Vowei.Web.G18nWebViewPage<IEnumerable<Vowei.Core.Models.Employee>>

<h2>@ViewBag.Title</h2>

<table>
    <tr>
        <th></th>
        <th>
            @T(m => m.UserName)
        </th>
        <th>
            @T(m => m.Email)            
        </th>
        <th>
            @T(m => m.DisplayName)            
        </th>
        <th>
            @T(m => m.ReportToEmail)            
        </th>
        <th>
            @T(m => m.Title)            
        </th>
        <th>
            @T(m => m.Department)            
        </th>
        <th>
            @T(m => m.Level)            
        </th>
        <th>
            @T(m => m.Telephone)            
        </th>
        <th>
            @T(m => m.OnboardDate)            
        </th>
    </tr>

@foreach (var item in Model) {
    if ( !item.IsConfirmed ) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
        <td>
            @item.UserName
        </td>
        <td>
            @item.Email
        </td>
        <td>
            @item.DisplayName
        </td>
        <td>
            @item.ReportToEmail
        </td>
        <td>
            @item.Title
        </td>
        <td>
            @item.Department
        </td>
        <td>
            @item.Level
        </td>
        <td>
            @item.Telephone
        </td>
        <td>
            @String.Format("{0:g}", item.OnboardDate)
        </td>
    </tr>
    }
}

</table>

